package com.earl.eatbao.service;


public interface VerifyCodeService {

    /**
     * 获取验证码.
     * @param phoneNumber
     * @return
     */
    String genVerifyCode(String phoneNumber);

    /**
     * 验证验证码
     * @param verifyCode  验证码
     * @param phoneNumber  手机号
     * @return
     */
    Boolean confirmVerifyCode(String verifyCode, String phoneNumber);

    /**
     * 发送验证码
     * @param phoneNumber
     */
	void sendVerifyCode(String phoneNumber);

    /**
     * 发送手机验证码
     * @param phoneNumber
     * @return
     */
    Boolean getPhoneCode(String phoneNumber);
}